﻿using HC.View;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using EMRView;
using EMRView.Extensions.HCAttribute;
using EMRView.Extensions.Command;

namespace EMRView.Extensions.Command.StandardCommand.Format
{
    [Command(CommandType.格式化, "AlignRight", "右对齐")]
    public class AlignRightCommand : BaseCommand
    {
        public override Icon CommandIcon
        {
            get
            {
                return EMRView.Extensions.Properties.HCResource.右对齐;
            }
        }

        public override object Execute(HCEmrView _view, bool showDefaultUI = false, params object[] para)
        {
            _view.ApplyParaAlignHorz(ParaAlignHorz.pahRight);
            return null;
        }

        public override void InitControl(object control)
        {

        }
    }
}
